﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using KingsSharp.Core.Data;

namespace CRM.Admin.Contracts.Model.Customer
{
    /// <summary>
    /// 顾客合同情况
    /// </summary>
    public class Contract:EntityBase<Guid>
    {
        /// <summary>
        /// 顾客外键ID
        /// </summary>
        public Guid CustomerId { get; set; }

        /// <summary>
        /// 顾客导航属性
        /// </summary>
        public virtual Customer Customer { get; set; }

        /// <summary>
        /// 合同单据时间
        /// </summary>
        public DateTime OrderTime { get; set; }

        /// <summary>
        /// 合同延期到款评价
        /// </summary>
        public string DelayPaymentEvaluate { get; set; }

        /// <summary>
        /// 合同延期到款金额
        /// </summary>
        public decimal DelayPaymentMoney { get; set; }

        /// <summary>
        /// 合同延期到款次数
        /// </summary>
        public int DelayPaymentCount { get; set; }

        /// <summary>
        /// 合同提前到款评价
        /// </summary>
        public string AdvancePaymentEvaluate { get; set; }

        /// <summary>
        /// 合同提前到款金额
        /// </summary>
        public decimal AdvancePaymentMoney { get; set; }

        /// <summary>
        /// 合同提前到款次数
        /// </summary>
        public int AdvancePaymentCount { get; set; }

        /// <summary>
        /// 合同违约次数
        /// </summary>
        public int BreachCount { get; set; }
    }
}
